package org.hk.kg.finance.student.service;

import java.util.List;
import java.util.Map;

import org.hk.kg.db.IDBService;
import org.hk.kg.db.annotations.StatusMsg;
import org.hk.kg.db.annotations.Transaction;
import org.hk.kg.finance.FinanceConstants;

public interface IStudentService extends IDBService{
	/**
	 * 创建新的学生
	 * @param infoMap
	 * @return
	 */
	@Transaction
	@StatusMsg
	(
			beginMsg=FinanceConstants.MSG_STUDENT_CREATE_BEGIN,
			endMsg=FinanceConstants.MSG_STUDENT_CREATE_END,
			errMsg=FinanceConstants.MSG_STUDENT_CREATE_ERROR
			
	)
	boolean createStudent(Map infoMap);
	
	@StatusMsg
	(
			beginMsg=FinanceConstants.MSG_STUDENT_QRY_BEGIN,
			endMsg=FinanceConstants.MSG_STUDENT_QRY_END,
			errMsg=FinanceConstants.MSG_STUDENT_QRY_ERROR
	)
	List<Map> queryStudents(Map qryMap);
}
